package com.wechat.models.request;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 微信登录请求体
 */
@Data
@EqualsAndHashCode
@JsonIgnoreProperties(ignoreUnknown = true)
public class LoginRequest implements Serializable {

    @ApiModelProperty(value = "用户openId", required = true)
    private String openid;

    @ApiModelProperty("用户昵称")
    private String nickName;
    
    @ApiModelProperty("用户的性别，值为1时是男性，值为2时是女性，值为0时是未知")
    private Integer sex;

    @ApiModelProperty("用户头像")
    private String headImgUrl;

    private Integer prePartnerId;
    
}
